package com.hxzy.login;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Login extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);

        findViewById(R.id.btn).setOnClickListener(new OnClickListener(){
                   @Override
                   public void onClick(View v) {
                       startActivity(new Intent(Login.this,second.class));
                   }
        });
    }

}
